package site.codeblog.designpattern.depend_reverse.before;

public class BeforeDemo {

    public static void main(String[] args) {

        InterCpu interCpu = new InterCpu();
        XiJieDisk xiJieDisk = new XiJieDisk();
        HaiDaoChuanMem haiDaoChuanMem = new HaiDaoChuanMem();

        Computer computer = new Computer();
        computer.setInterCpu(interCpu);
        computer.setXiJieDisk(xiJieDisk);
        computer.setHaiDaoChuanMem(haiDaoChuanMem);

        computer.run();

    }

}
